Optimal. Leaf size=229 \[ \frac {2 d E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{b f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {2 d (b c-a d) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b^2 f \sqrt {c+d \sin (e+f x)}}+\frac {2 (b c-a d)^2 \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b^2 (a+b) f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.296, Rules used = {2883, 2734,
2732, 2882, 2742, 2740, 2886, 2884} \begin {gather*} \frac {2 d (b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{b^2 f \sqrt {c+d \sin (e+f x)}}+\frac {2 (b c-a d)^2 \sqrt {\frac {c+d \sin (e+f x)}{c+d}} \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{b^2 f (a+b) \sqrt {c+d \sin (e+f x)}}+\frac {2 d \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{b f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2882
Rule 2883
Rule 2884
Rule 2886
Rubi steps
\begin {align*} \int \frac {(c+d \sin (e+f x))^{3/2}}{a+b \sin (e+f x)} \, dx &=\frac {d \int \sqrt {c+d \sin (e+f x)} \, dx}{b}-\frac {(-b c+a d) \int \frac {\sqrt {c+d \sin (e+f x)}}{a+b \sin (e+f x)} \, dx}{b}\\ &=\frac {(d (b c-a d)) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{b^2}+\frac {(b c-a d)^2 \int \frac {1}{(a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{b^2}+\frac {\left (d \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{b \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}\\ &=\frac {2 d E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{b f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {\left (d (b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{b^2 \sqrt {c+d \sin (e+f x)}}+\frac {\left ((b c-a d)^2 \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{(a+b \sin (e+f x)) \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{b^2 \sqrt {c+d \sin (e+f x)}}\\ &=\frac {2 d E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{b f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {2 d (b c-a d) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b^2 f \sqrt {c+d \sin (e+f x)}}+\frac {2 (b c-a d)^2 \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b^2 (a+b) f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 13.18, size = 242, normalized size = 1.06 \begin {gather*} \frac {2 i \left (b (c-d) E\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )+(a d+b (-2 c+d)) F\left (i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )+(b c-a d) \Pi \left (\frac {b (c+d)}{b c-a d};i \sinh ^{-1}\left (\sqrt {-\frac {1}{c+d}} \sqrt {c+d \sin (e+f x)}\right )|\frac {c+d}{c-d}\right )\right ) \sec (e+f x) \sqrt {-\frac {d (-1+\sin (e+f x))}{c+d}} \sqrt {-\frac {d (1+\sin (e+f x))}{c-d}}}{b^2 \sqrt {-\frac {1}{c+d}} f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 7.46, size = 391, normalized size = 1.71
method | result | size |
default | \(-\frac {2 \left (\EllipticE \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) b c +\EllipticE \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) b d +a \EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) d -2 b c \EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right )-\EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right ) b d -\EllipticPi \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, -\frac {\left (c -d \right ) b}{a d -b c}, \sqrt {\frac {c -d}{c +d}}\right ) a d +\EllipticPi \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, -\frac {\left (c -d \right ) b}{a d -b c}, \sqrt {\frac {c -d}{c +d}}\right ) b c \right ) \sqrt {-\frac {d \left (1+\sin \left (f x +e \right )\right )}{c -d}}\, \sqrt {-\frac {\left (-1+\sin \left (f x +e \right )\right ) d}{c +d}}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}\, \left (c -d \right )}{b^{2} \cos \left (f x +e \right ) \sqrt {c +d \sin \left (f x +e \right )}\, f}\) | \(391\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}}{a+b\,\sin \left (e+f\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________